﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Site.Master" AutoEventWireup="true" CodeBehind="ChangePassword.aspx.cs" Inherits="BEELab.ChangePassword" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentBody" runat="server">
    <div id="wrap" class="clearfix">
        <h2 class="headline">Change Password</h2>
        <div class="sign-form">
            <div class="input-hold">

                <asp:Label ID="Label1" runat="server" CssClass="sign-label" AssociatedControlID="txtCurrentPassword">Current Password</asp:Label>
                <asp:TextBox runat="server" ID="txtCurrentPassword" CssClass="sign-input" TextMode="Password" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtCurrentPassword"
                    Text="*" ForeColor="Red" ErrorMessage="* Current Password is required." />
                <asp:RegularExpressionValidator ID="revCurrentPassword" runat="server" ControlToValidate="txtCurrentPassword" ErrorMessage="* Password should be alphanumeric and at least 6 characters long" Text="*" Display="Dynamic" ForeColor="Red" ValidationExpression="^[a-zA-Z0-9 .-_]{6,100}$"></asp:RegularExpressionValidator>
            </div>

            <div class="input-hold">
                <asp:Label ID="Label2" CssClass="sign-label" runat="server" AssociatedControlID="txtNewPassword">New Password</asp:Label>
                <asp:TextBox class="sign-input" runat="server" ID="txtNewPassword" TextMode="Password" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtNewPassword"
                    Text="*" ForeColor="Red" Display="Dynamic" ErrorMessage="* New Password is required." />
                <asp:RegularExpressionValidator ID="revtxtNewPassword" runat="server" ControlToValidate="txtNewPassword" ErrorMessage="* Password should be alphanumeric and at least 6 characters long" Text="*" Display="Dynamic" ForeColor="Red" ValidationExpression="^[a-zA-Z0-9 .-_]{6,100}$"></asp:RegularExpressionValidator>
            </div>

            <div class="input-hold">

                <asp:Label ID="Label3" runat="server" CssClass="sign-label1" AssociatedControlID="txtConfirmeNewPassword">New Password<br />
                    <span>Repeat</span></asp:Label>
                <asp:TextBox runat="server" ID="txtConfirmeNewPassword" CssClass="sign-input" TextMode="Password" />

                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtConfirmeNewPassword"
                    Text="*" ForeColor="Red" Display="Dynamic" ErrorMessage="* Password repeat is required." />

                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtNewPassword" ControlToValidate="txtConfirmeNewPassword"
                    Text="*" ForeColor="Red" Display="Dynamic" ErrorMessage="* Passwords don't match." />
            </div>

            <div class="input-hold">

                <asp:Button ID="btnSubmit" Text="Submit" OnClick="btnSubmit_Click" runat="server" CssClass="sign-submit" />
            </div>
        </div>
        <div class="error">
            <asp:ValidationSummary ID="vsChangePassword" runat="server" />
            <asp:Label ID="lblVerifyPassword" runat="server" ForeColor="Red" Visible="false">
                  <p>* Password is wrong</p>
            </asp:Label>
        </div>
    </div>
</asp:Content>
